package com.pwser.dubbo.consumer;

import java.util.List;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.pwser.dubbo.provider.DemoService;


public class ConsumerB {

	public static void main(String[] args) throws Exception {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"config/dubbo-consumer.xml"});
		context.start();
		
		for (int i = 0; i < 100; i++) {
			DemoService demoService = (DemoService) context.getBean("demoService");
			String hello = demoService.sayHello("han mei mei!!!---" + i);
			System.out.println(hello);
		}
		System.in.read();
	}

}